package com.youlai.boot.system.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.youlai.boot.system.model.QB.Device;
import com.youlai.boot.system.model.QB.DeviceInfoVO;

import java.util.List;

public interface DeviceService extends IService<Device> {

    boolean addDevice(Device device);

    List<Device> getAllDevice();
//
    Device getDeviceByNumber(String deviceNumber);

    boolean updateDeviceStatus(String deviceNumber, int newStatus);
    //添加设备使用记录

//    boolean addDeviceUsageRecordById(Long id, String usagePurpose,LocalDateTime usageTime);

    //查询设备使用记录
    List<DeviceInfoVO> getDeviceInfo(String devicenumber);

    List<DeviceInfoVO> selectList(LambdaQueryWrapper<Device> eq);
    boolean updateDevice(Device device);
    boolean deleteDeviceById(Integer id);
}
